package edu.ustc.iproject.action.student;



import com.opensymphony.xwork2.ActionSupport;

import edu.ustc.iproject.bean.Student;
import edu.ustc.iproject.service.StudentService;

public class updateStudent2 extends ActionSupport {

	private Student student;
	private StudentService service;
	
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	public StudentService getService() {
		return service;
	}
	public void setService(StudentService service) {
		this.service = service;
	}
	
	
	@Override
	public String execute() throws Exception
	{
		System.out.println("updatestudent2-1 Stu_id():"+student.getStu_id());
		
		this.service.updateStudent(student);
		
		System.out.println("updatestudent2-2");
		
		return SUCCESS;
	}
	
	
}
